//
//  MainItemCell.swift
//  物料商行
//
//  Created by HaoDong Hong on 2017/9/10.
//  Copyright © 2017年 HaoDong Hong. All rights reserved.
//

import UIKit

class MainItemCell: UICollectionViewCell {
    @IBOutlet weak var imageView: UIImageView!
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var productCodeLabel: UILabel!
    
    override var isSelected: Bool {
        didSet {
            self.layer.borderWidth = isSelected ? 3.0 : 0.0
            self.layer.borderColor = isSelected ? #colorLiteral(red: 0.5006363988, green: 0.5016242862, blue: 0, alpha: 1).cgColor : #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0).cgColor
        }
    }
    
}
